<template>
  <van-swipe
    class="pho-swipe"
    v-bind="$attrs"
    :style="newStyle"
    :autoplay="$attrs.autoplay?$attrs.interval:0"
    indicator-color="white"
    touchable
    v-on="$listeners"
  >
    <van-swipe-item v-for="(item,i) in resData" :key="i">
      <img :src="item.path" alt="首页轮播图" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
import { comMixin } from "../../../utils/comMixins";
export default {
  name: "phone-form-swipe",
  mixins: [comMixin],
};
</script>

<style lang="scss" >
.pho-swipe {
  .van-swipe-item {
    img {
      width: 100%;
      height: 100%;
    }
  }
}
</style>